<div draggable mat-dialog-title>
  <h6>{{title}}</h6>
</div>
<div mat-dialog-content>
  <form [formGroup]="formGroup" class="form-container" novalidate autocomplete="off">
    <mat-form-field>
      <input formControlName="instName" matInput placeholder="{{'objectName' | translate}}">
    </mat-form-field>
    <mat-form-field>
      <input formControlName="ip" matInput placeholder="{{'instPrefix' | translate}}" matTooltip="{{'instPrefixTips' | translate}}">
    </mat-form-field>
    <mat-form-field *ngIf="isAdd()">
      <input formControlName="username" matInput placeholder="{{'adminUser' | translate}}">
    </mat-form-field>
    <mat-form-field *ngIf="isAdd()">
      <input formControlName="password" type="password" matInput placeholder="{{'password' | translate}}">
    </mat-form-field>
    <!--
    <mat-form-field>
      <input [readonly]="keyDisabled" formControlName="instName" matInput placeholder="{{'objectName' | translate}}">
    </mat-form-field>
    <mat-form-field>
      <textarea formControlName="description" matInput [readonly]="disabled"
       cdkTextareaAutosize
       #autosize="cdkTextareaAutosize"
       cdkAutosizeMinRows="2"
       cdkAutosizeMaxRows="5"
       placeholder="{{'description' | translate}}"></textarea>
    </mat-form-field>
    -->
  </form>
</div>
<div mat-dialog-actions>
  <div *ngIf="error" class="wdl-error">{{error | translate}}</div>
  <button mat-button (click)="dialogRef.close('Close')">{{"close" | translate}}</button>
  <button mat-button (click)="submit()" [disabled]="disableSubmit()">{{"submit" | translate}}</button>
</div>